package com.intelligencesoft.pss.service.binding;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.intelligencesoft.pss.dao.binding.BindingListDao;
import com.intelligencesoft.pss.entity.binding.BindingList;
import com.intelligencesoft.pss.enums.BindingType;

@Service
public class BindingListService {
	
	@Autowired
	private BindingListDao bindingListDao;
	
	public List<BindingList> loadBindingList(){
		return bindingListDao.getHibernateTemplate().loadAll(BindingList.class);
	}
	
	public BindingList loadByBindingType(BindingType bindingType){
		return bindingListDao.loadByBindingType(bindingType);
	}
}
